package com.mathmodeling.repository;

import com.mathmodeling.entity.TeamMember;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeamMemberRepository extends JpaRepository<TeamMember, String> {
    
    /**
     * 根据团队ID查找所有队员
     */
    List<TeamMember> findByTeamId(String teamId);
    
    /**
     * 检查学号是否已存在
     */
    boolean existsByStudentId(String studentId);
} 